# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=libsecret
pkgver=0.21.2
pkgrel=0
pkgdesc="Library for storing and retrieving passwords and other secrets"
url="https://wiki.gnome.org/Projects/Libsecret"
arch="all"
license="LGPL-2.1-or-later"
makedepends="glib-dev libxslt-dev docbook-xsl libgcrypt-dev
	gobject-introspection-dev vala meson"
checkdepends="py3-dbus py3-gobject3 xvfb-run dbus-x11"
options="!check" # gjs is in community now
subpackages="$pkgname-static $pkgname-dev $pkgname-doc $pkgname-lang"
source="https://download.gnome.org/sources/libsecret/${pkgver%.*}/libsecret-$pkgver.tar.xz"

build() {
	abuild-meson \
		--default-library=both \
		-Dgtk_doc=false \
		output
	meson compile -C output
}

check() {
	xvfb-run meson test --no-rebuild --print-errorlogs -C output
}

package() {
	DESTDIR="$pkgdir" meson install --no-rebuild -C output
}

sha512sums="
7aafa29de9aef31e656f805ccea33816270d7e2e51322952fa005fcfe3953b1d4caa80ddb6456a0f3c76b392c083510cdef7ab17d82155248df2cf0d31c9dda4  libsecret-0.21.2.tar.xz
"
